<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.prime.com.tr/ui" 
      xmlns:h="http://java.sun.com/jsf/html">
   <h:head>
        <title>SVPO - Venda de Passagem de Onibus</title>
    </h:head>
   
   <h:body>

   <h:form>  
    <p:panel header="Amidnistrador - Cadastro">  
        <h:panelGrid columns="2" cellpadding="6">  
            <h:outputLabel value="Nome: " />  
            <p:inputText label="Nome" value="#{administradorBean.nome}"/>  
              
            <h:outputText value="CPF " />  
            <p:inputMask  value="#{administradorBean.cpf}" mask="999.999.999-99"/>  
              
            <h:outputText value="Senha: " />  
            <p:inputMask  value="#{administradorBean.senha}" mask="99999999"/>  
              
            <h:outputText value="Telefone " />  
            <p:inputMask value="#{administradorBean.fone}" mask="(999)(99)9999-9999"/>  
              
            <h:outputText value="Data de Nascimento " />  
            <p:inputMask value="#{administradorBean.datanascimento}" mask="99/99/9999"/>  
              
            <h:outputLabel value="Email: " />  
            <p:inputText label="email" value="#{administradorBean.email}"/>  
            
            <h:outputLabel value="Endereço: " />  
            <p:inputText label="endereço" value="#{administradorBean.endereco}"/> 
          
            <p:commandButton value="Reset" type="reset" />  
            <p:commandButton value="Submit" update="display" oncomplete="dialog.show()" 
                             actionListener="#{administradorBean.salvar()}"/>  
  
        </h:panelGrid>  
    </p:panel>  
      
    <p:dialog widgetVar="dialog" width="300" height="275" modal="true">  
        <h:panelGrid id="display" columns="2" cellpadding="5">  
      
            <h:outputText value="nome: " />  
            <h:outputText value="#{administradorBean.nome}" />  
              
            <h:outputText value="CPF: " />  
            <h:outputText value="#{administradorBean.cpf}" />  
              
            <h:outputText value="Senha: " />  
            <h:outputText value="#{administradorBean.senha}"/>  
              
            <h:outputText value="fone: " />  
            <h:outputText value="#{administradorBean.fone}" />  
              
            <h:outputText value="Data de Nascimento: " />  
            <h:outputText value="#{administradorBean.datanascimento}" />  
              
            <h:outputText value="Email: " />  
            <h:outputText value="#{administradorBean.email}" />  
            
            
            <h:outputText value="Endereço " />  
            <h:outputText value="#{administradorBean.endereco}" />  
      
        </h:panelGrid>  
    </p:dialog>  
           
    </h:form>  
    </h:body>

   
</html>
